package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.marketBean.MarketCategory_zyl;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class ZYL_admin_goods_catAndBrandVO {
    @JsonProperty("errno")
    private Integer errno;
    @JsonProperty("data")
    private DataDTO data;
    @JsonProperty("errmsg")
    private String errmsg;

    @NoArgsConstructor
    @Data
    @AllArgsConstructor
    public static class DataDTO {
        @JsonProperty("categoryList")
        private List<CategoryListDTO> categoryList;
        @JsonProperty("brandList")
        private List<MarketCategory_zyl> brandList;

        @NoArgsConstructor
        @Data
        public static class CategoryListDTO {
            @JsonProperty("value")
            private Integer value;
            @JsonProperty("label")
            private String label;
            @JsonProperty("children")
            private List<MarketCategory_zyl> children;

           /* @NoArgsConstructor
            @Data
            public static class ChildrenDTO {
                @JsonProperty("value")
                private Integer value;
                @JsonProperty("label")
                private String label;
            }*/
        }

      /*  @NoArgsConstructor
        @Data
        public static class BrandListDTO {
            @JsonProperty("value")
            private Integer value;
            @JsonProperty("label")
            private String label;*/
        }
    }

